package com.ruoyi.squadweb.service.impl;

import java.util.List;

import com.ruoyi.squadweb.domain.SquadMatchTeamCompareInfo;
import com.ruoyi.squadweb.mapper.SquadMatchTeamCompareInfoMapper;
import com.ruoyi.squadweb.service.ISquadMatchTeamCompareInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 比赛场次信息Service业务层处理
 *
 * @author LJY
 * @date 2024-07-13
 */
@Service
public class SquadMatchTeamCompareInfoServiceImpl implements ISquadMatchTeamCompareInfoService
{
    @Autowired
    private SquadMatchTeamCompareInfoMapper squadMatchTeamCompareInfoMapper;

    /**
     * 查询比赛场次信息
     *
     * @param id 比赛场次信息主键
     * @return 比赛场次信息
     */
    @Override
    public SquadMatchTeamCompareInfo selectSquadMatchTeamCompareInfoById(Long id)
    {
        return squadMatchTeamCompareInfoMapper.selectSquadMatchTeamCompareInfoById(id);
    }

    /**
     * 查询比赛场次信息列表
     *
     * @param squadMatchTeamCompareInfo 比赛场次信息
     * @return 比赛场次信息
     */
    @Override
    public List<SquadMatchTeamCompareInfo> selectSquadMatchTeamCompareInfoList(SquadMatchTeamCompareInfo squadMatchTeamCompareInfo)
    {
        return squadMatchTeamCompareInfoMapper.selectSquadMatchTeamCompareInfoList(squadMatchTeamCompareInfo);
    }

    /**
     * 新增比赛场次信息
     *
     * @param squadMatchTeamCompareInfo 比赛场次信息
     * @return 结果
     */
    @Override
    public int insertSquadMatchTeamCompareInfo(SquadMatchTeamCompareInfo squadMatchTeamCompareInfo)
    {
        return squadMatchTeamCompareInfoMapper.insertSquadMatchTeamCompareInfo(squadMatchTeamCompareInfo);
    }

    /**
     * 修改比赛场次信息
     *
     * @param squadMatchTeamCompareInfo 比赛场次信息
     * @return 结果
     */
    @Override
    public int updateSquadMatchTeamCompareInfo(SquadMatchTeamCompareInfo squadMatchTeamCompareInfo)
    {
        return squadMatchTeamCompareInfoMapper.updateSquadMatchTeamCompareInfo(squadMatchTeamCompareInfo);
    }

    /**
     * 批量删除比赛场次信息
     *
     * @param ids 需要删除的比赛场次信息主键
     * @return 结果
     */
    @Override
    public int deleteSquadMatchTeamCompareInfoByIds(Long[] ids)
    {
        return squadMatchTeamCompareInfoMapper.deleteSquadMatchTeamCompareInfoByIds(ids);
    }

    /**
     * 删除比赛场次信息信息
     *
     * @param id 比赛场次信息主键
     * @return 结果
     */
    @Override
    public int deleteSquadMatchTeamCompareInfoById(Long id)
    {
        return squadMatchTeamCompareInfoMapper.deleteSquadMatchTeamCompareInfoById(id);
    }

    @Override
    public List<SquadMatchTeamCompareInfo> listMatch(SquadMatchTeamCompareInfo squadMatchTeamCompareInfo) {
        return squadMatchTeamCompareInfoMapper.selectSquadMatchTeamCompareInfoList(squadMatchTeamCompareInfo);
    }
}
